﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace BSCore
{
    public class Tile
    {
        public Vector3 Position { get; set; }

        public object ID { get; set; }

        public int SpriteID { get; set; }

        public Sprite Sprite
        {
            get
            {
                return GameResources.GetSpriteByID(SpriteID);
            }
        }

        public void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {

                Sprite.Draw(spriteBatch, new Vector2(Position.X,Position.Y));
            
        }
    }
}
